const storageKey = {
  // 钱包地址
  publicKey: 'public-key',
  // 钱包短地址
  walletShortAddress: 'wallet-short-address',
  // 钱包icon
  walletIcon: 'wallet-icon'
}

const setStorage = (key, token) => {
  return window.sessionStorage.setItem(key, token)
}

const getStorage = (key) => {
  return window.sessionStorage.getItem(key)
}

const removeStorage = (key) => {
  return window.sessionStorage.removeItem(key)
}

export {
  storageKey,
  setStorage,
  getStorage,
  removeStorage
}